#include "csapp.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <fcntl.h>

int Open(char *filename, int flags, mode_t mode);
int Close(int fd);

int main()
{
	int fd1, fd2;

	fd1 = Open("foo.txt", O_RDONLY, 0);
	Close(fd1);
	fd2 = Open("baz.txt", O_RDONLY, 0);
	printf("fd2 = %d\n", fd2);
	exit(0);
}
